<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
	<div class="container containerUser fix pt15">
		{template member/slide}
		<div class="userRight">
			<div class="userTitle mgb10">
				个人信息
			</div>
			<div class="userMain mgb10">
				<div id="newTab" class="newTab">
					<a href="{U('member/info')}" class="">个人资料</a><a href="{U('member/level')}" class="curr curr">等级头衔</a>
				</div>
				<div class="evCall fix tapli">
					<div class="selectHeadImg" id="id_select_head">
						<img src="{$_user['head_pic']}" width="100" height="100" class="headImg" id="id_userInfo_headpic"><a>修改头像</a>
					</div>
					<ul class="evCallInfo">
						<li><em>账</em>号：<span>{$_user['username']}</span></li>
						<li><em>等</em>级：<span>{$levelInfo['level']}</span></li>
						<li><em>头</em>衔：<span>{$levelInfo['title']}</span></li>
						<li>成长值：<span>{$_userInfo['recharge_total'] * 1}</span></li>
						<li style="color: rgb(153, 153, 153);">每充值1元加1分</li>
					</ul>
					<div class="levelBar">
						<p class="u-progress">
							<span class="pgbar" style="width: {if !$levelInfo['group_point']} 1{else} {$levelInfo['group_point']/$nextLevel['group_point'] * 100}{/if}%;"><span class="pging"></span></span>
						</p>
						<em class="point">{if !$levelInfo['group_point']} 1{else} {$levelInfo['group_point']/$nextLevel['group_point'] * 100}{/if}%</em>
						<div class="levelBarInfo">
							<em>{$levelInfo['title']}</em>
							<p>
								<span style="color: rgb(241, 66, 65);">{$levelInfo['group_point']}</span>/{$nextLevel['group_point']}  距离下一级还要{$nextLevel['group_point'] - $levelInfo['group_point']}分
							</p>
							<i>{$nextLevel['title']}</i>
						</div>
					</div>
					<h6>等级机制</h6>
					<table width="80%" id="Gradelist">
    					<tbody>
    					<tr>
    						<th>
    							等级
    						</th>
    						<th>
    							头衔
    						</th>
    						<th>
    							成长积分
    						</th>
    						<th>
    							晋级奖励(元)
    						</th>
    						<th>
    							跳级奖励(元)
    						</th>
    					</tr>
    					{loop $levelData as $key => $value}
        					<tr>
        						<td>{$value['level']}</td>
        						<td>{$value['title']}</td>
        						<td>{$value['group_point']}</td>
        						<td>{$value['reward']}</td>
        						<td>{$value['overstep']}</td>
        					</tr>
    					{/loop}
    					</tbody>
					</table>
				</div>
			</div>
			<div style="display: none;" id="id_head_pic_choice">
				<div class="layerBg"></div> 
				<div class="layerBox" style="width: 657px;">
					<div class="headImgList">
						<div class="headImgListTitle">修改头像 <a class="close" id="id_close_choice" style="margin: 2px 0;"></a></div> 
						<div class="headImgContent">
							<div class="slider-con fix pageNum0">
								<div class="item-page fix" id="id_head_pic_list"></div>
							</div>
						</div> 
						<div class="headImgView">
							<h5>预览</h5>
							<p>100x100</p> 
							<img src="{$info['head_pic']}" id="id_user_headpic"> 
							<h5 class="theName" style="color: rgb(83, 168, 241);"></h5> 
							<div class="button">
								<a class="submitBtn" id="id_setpic_post">保存头像</a> 
								<a class="submitBtn cancel" id="id_setpic_cannel">取消</a>
							</div>
						</div>
					</div> 
					<div class="point">
						<a href="javascript:;" class="curr"></a> 
						<a href="javascript:;" class=""></a> 
						<a href="javascript:;" class=""></a> 
						<a href="javascript:;" class=""></a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script>
		var setHeadPic = "{U('json/func_member')}";
	</script>
	<script src="static/js/member/info_init.js"></script>
{template index/footer}